package com.qfedu.buy.server.dao;

import com.qfedu.buy.common.dto.UserLogDto;
import com.qfedu.buy.server.entity.User;
import com.qfedu.buy.server.entity.UserLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
 * @program: NeighborBuy
 * @description:
 * @author: Feri(邢朋辉)
 * @create: 2021-01-25 15:00
 */
public interface UserLogDao {
    @Insert("insert into t_userlog(uid,type,content,ip,ctime) values(#{uid},#{type},#{content},#{ip},now())")
    int insert(UserLog log);
    @Select("select * from t_userlog where uid=#{uid}")
    List<UserLogDto> selectByUid(int uid);
}